﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using aoprinter.Model;

namespace aoprinter.Draw
{
    class LineTypeFactory
    {
        static public ILineTypeOper GetLineOper(EnmLineType type)
        {
            switch (type)
            {
                case EnmLineType.SingleLine:
                    return new SingleLineOper();
                case EnmLineType.DoubleLine:
                    return new DoubleLineOper();
                case EnmLineType.ArcLine:
                    return new ArcLineOper();
                default:
                    break;
            }
            return null;
        }
    }
}